package com.voice.core.channel;


import java.io.Closeable;
import java.nio.channels.SocketChannel;

public interface IOContext extends Closeable {

    boolean registerInput(SocketChannel socketChannel, Runnable callback);

    boolean registerOutput(SocketChannel socketChannel, Runnable callback);

    void unRegisterInput(SocketChannel socketChannel);

    void unRegisterOutput(SocketChannel socketChannel);

}
